home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / action_fishing.swf / scripts / frame_19 / PlaceObject2_168_15 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Text File  |  2011-01-13  |  455b  |  23 lines

  1. onClipEvent(load){
  2.    function reiniciar()
  3.    {
  4.       gotoAndStop(1);
  5.       direccion = random(2) + 1;
  6.       if(direccion == 1)
  7.       {
  8.          this._x = random(4200) + 500;
  9.          sentido = 1;
  10.       }
  11.       if(direccion == 2)
  12.       {
  13.          this._x = - random(4200);
  14.          sentido = -1;
  15.       }
  16.       pescado = false;
  17.       this._y = random(130) + 210;
  18.    }
  19.    reiniciar();
  20.    velocidad = random(6) + 5;
  21.    pesco = false;
  22. }
  23.